import request from '@/utils/request';
//添加和更改
export const reNoteadd = (data:any) =>request.put<any,any>("/note/add",data)

//当前用户日记所有数据
export const reNotequery = () =>request.get<any>(`/note/query`)

//当前选中的日记数据
export const reNotequeryid = (id:any) =>request.get<any>(`/note/?id=${id}`)

//删除日记
export const reNotedelete = (id:any) =>request.delete<any>(`/note/delete?id=${id}`)

//查询
export const  reSearchNote = (title:any) =>request.get<any>(`/note/search?title=${title}`)